package com.eascs.admin.o2o.backfee.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;


/**
 * The persistent class for the wf_message database table.
 * 
 */
@Entity
@Table(name="o2o_com_backfee")
@NamedQuery(name="O2OComBackFee.findAll", query="SELECT w FROM O2OComBackFee w")
public class O2OComBackFee implements Serializable {
	private static final long serialVersionUID = 1L;
	
	public static final String BACK_TYPE_RISK = "BackRisk";
	public static final String BACK_TYPE_DEPOSITE = "BackDeposite";
	public static final String BACK_TYPE_MANAGE = "BackManage";
	
	@Id
	@Column(name="id")
	private String id;

	/**
	 * 贷款(主表)NO
	 */
	@Column(name="loanapply_no")
	private String loanapplyNo;

	/**
	 * 单据编号
	 */
	@Column(name="bill_code")
	private String billCode;

	/**
	 * 退款流程状态(NEW：新建,RUN：退款中,CLO：已退并流程结束)
	 */
	@Column(name="bill_status")
	private String billStatus;

	/**
	 * 退费金额
	 */
	@Column(name="back_money")
	private BigDecimal backMoney;

	/**
	 * 币种
	 */
	@Column(name="pay_currency")
	private String payCurrency;

	/**
	 * 付款类型
	 */
	@Column(name="pay_type")
	private String payType;

	/**
	 * 付款方式
	 */
	@Column(name="pay_mode")
	private String payMode;
	
	
	/**
	 * 要求付款日期
	 */
	@Column(name="required_date")
	private Date requiredDate;
	
	/**
	 * 备注
	 */
	@Column(name="pay_remark")
	private String payRemark;
	
	/**
	 * 借款人名称
	 */
	@Column(name="loaner_name")
	private String loanerName;

	/**
	 * 退费开户银行名称
	 */
	@Column(name="bank_name")
	private String bankName;

	/**
	 * 退费银行地址
	 */
	@Column(name="bank_addr")
	private String bankAddr;

	/**
	 * 退费银行账
	 */
	@Column(name="bank_account")
	private String bankAccount;

	/**
	 * 退费账户户名
	 */
	@Column(name="account_name")
	private String accountName;

	/**
	 * 实际到帐时间
	 */
	@Column(name="pay_date")
	private Date payDate;
	
	/**
	 * 创建人id
	 */
	@Column(name="creator_id")
	private String creatorId;

	/**
	 * 创建人姓名
	 */
	@Column(name="creator_name")
	private String creatorName;

	/**
	 * 创建时间
	 */
	@Column(name="creat_time")
	private Date creatTime;

	/**
	 * 最后修改人
	 */
	@Column(name="updator")
	private String updator;
	
	/**
	 * 最后修改时间
	 */
	@Column(name="update_time")
	private Date updateTime;

	/**
	 * 转账备注
	 */
	@Column(name="repayment_notes")
	private String repaymentNotes;

	/**
	 * 是否删除Y-是 N-不是
	 */
	@Column(name="islock")
	private String islock;

	/**
	 * 退费类型
	 */
	@Column(name="back_type")
	private String backType;

	/**
	 * 数椐来源
	 */
	@Column(name="data_source")
	private String dataSource;

	
	/**
	 * 退风险补偿金金额
	 */
	@Column(name="back_risk")
	private BigDecimal backRisk;
	
	/**
	 * 退管理费金额
	 */
	@Column(name="back_manger")
	private BigDecimal backManger;
	
	/**
	 * 退保证金金额
	 */
	@Column(name="back_deposite")
	private BigDecimal backDeposite;
	
	
	
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	

	public String getLoanapplyNo() {
		return loanapplyNo;
	}

	public void setLoanapplyNo(String loanapplyNo) {
		this.loanapplyNo = loanapplyNo;
	}

	public String getBillCode() {
		return billCode;
	}

	public void setBillCode(String billCode) {
		this.billCode = billCode;
	}

	public String getBillStatus() {
		return billStatus;
	}

	public void setBillStatus(String billStatus) {
		this.billStatus = billStatus;
	}

	public BigDecimal getBackMoney() {
		return backMoney;
	}

	public void setBackMoney(BigDecimal backMoney) {
		this.backMoney = backMoney;
	}

	public String getPayCurrency() {
		return payCurrency;
	}

	public void setPayCurrency(String payCurrency) {
		this.payCurrency = payCurrency;
	}

	public String getPayType() {
		return payType;
	}

	public void setPayType(String payType) {
		this.payType = payType;
	}

	public String getPayMode() {
		return payMode;
	}

	public void setPayMode(String payMode) {
		this.payMode = payMode;
	}

	public Date getRequiredDate() {
		return requiredDate;
	}

	public void setRequiredDate(Date requiredDate) {
		this.requiredDate = requiredDate;
	}

	public String getPayRemark() {
		return payRemark;
	}

	public void setPayRemark(String payRemark) {
		this.payRemark = payRemark;
	}

	public String getLoanerName() {
		return loanerName;
	}

	public void setLoanerName(String loanerName) {
		this.loanerName = loanerName;
	}

	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	public String getBankAddr() {
		return bankAddr;
	}

	public void setBankAddr(String bankAddr) {
		this.bankAddr = bankAddr;
	}

	public String getBankAccount() {
		return bankAccount;
	}

	public void setBankAccount(String bankAccount) {
		this.bankAccount = bankAccount;
	}

	public String getAccountName() {
		return accountName;
	}

	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}

	public Date getPayDate() {
		return payDate;
	}

	public void setPayDate(Date payDate) {
		this.payDate = payDate;
	}

	public String getCreatorId() {
		return creatorId;
	}

	public void setCreatorId(String creatorId) {
		this.creatorId = creatorId;
	}

	public String getCreatorName() {
		return creatorName;
	}

	public void setCreatorName(String creatorName) {
		this.creatorName = creatorName;
	}

	public Date getCreatTime() {
		return creatTime;
	}

	public void setCreatTime(Date creatTime) {
		this.creatTime = creatTime;
	}

	public String getUpdator() {
		return updator;
	}

	public void setUpdator(String updator) {
		this.updator = updator;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getRepaymentNotes() {
		return repaymentNotes;
	}

	public void setRepaymentNotes(String repaymentNotes) {
		this.repaymentNotes = repaymentNotes;
	}

	public String getIslock() {
		return islock;
	}

	public void setIslock(String islock) {
		this.islock = islock;
	}

	public String getBackType() {
		return backType;
	}

	public void setBackType(String backType) {
		this.backType = backType;
	}

	public String getDataSource() {
		return dataSource;
	}

	public void setDataSource(String dataSource) {
		this.dataSource = dataSource;
	}

	public BigDecimal getBackRisk() {
		return backRisk;
	}

	public void setBackRisk(BigDecimal backRisk) {
		this.backRisk = backRisk;
	}

	public BigDecimal getBackManger() {
		return backManger;
	}

	public void setBackManger(BigDecimal backManger) {
		this.backManger = backManger;
	}

	public BigDecimal getBackDeposite() {
		return backDeposite;
	}

	public void setBackDeposite(BigDecimal backDeposite) {
		this.backDeposite = backDeposite;
	}
	
}